import axios from "axios"
import usersUrls from "../../urls/user/users"

export default {
  // 获取所有品牌
  fetchGetUsersByPage (params) {
    return axios.post(usersUrls.getUsersByPage, params)
  },
  // 修改用户
  fetchEditUsers (params) {
    return axios.post(usersUrls.editUsers, params)
  },
  // 根据Id获取用户详情
  fetchGetUsersById (uid) {
    return axios.post(usersUrls.getUsersById + "?uid=" + uid)
  },
  // 批量禁用/解禁
  fetchBatchChangeState (data) {
    return axios.post(usersUrls.batchChangeState, data)
  }
}
